Documentation > CMS Template API Library > FilterParams > Add(String,Comparison,List[Int32],Boolean)

Add

Adds a filter which checks a list for the presence of a field.

public System.Void Add(String,Comparison,List[Int32],Boolean)

Parameters

NameDescriptionType
name The name of the field to compare. System.String
comparisonOperator The comparison operator. Must be IsInSet or NotInSet. CrownPeak.CMSAPI.Comparison
set The set. List<Int32>
checkLists Optional: Set to true if the field might be stored in an array (on a repeating panel). System.Boolean

Code Example

C#

Sample:

            
            FilterParams filter = new FilterParams();
            filter.Add("foo", Comparison.IsInSet, Util.MakeList(1234, 2345));
            
            

Connect with Crownpeak